import dayjs from "dayjs";

export const Unix2Date = (unixTime:number) =>  {
    return dayjs.unix(unixTime).format('YYYY-MM-DD HH:mm:ss')
}

export const Date2Unix = (date: string) => {
    return dayjs(date).unix()
}
